<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CORS test</title>
  </head>
  <body>
    <p>CORS test - 查看网络请求</p>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script>
      // 跨域请求
      // http-server -p 8001
      // 启动 cor.js
      // 访问 http://localhost:8001/cors.html
      $.get("http://localhost:8688/", (res) => {
        console.log("res", res);
      });
    </script>
  </body>
</html>
